import request from '@/utils/request'

// 查询采购价格分析列表
export function listPurchaseprice(query) {
  return request({
    url: '/procurementmanagement/purchaseprice/list',
    method: 'get',
    params: query
  })
}

// 查询采购价格分析详细
export function getPurchaseprice(priceid) {
  return request({
    url: '/procurementmanagement/purchaseprice/' + priceid,
    method: 'get'
  })
}

// 新增采购价格分析
export function addPurchaseprice(data) {
  return request({
    url: '/procurementmanagement/purchaseprice',
    method: 'post',
    data: data
  })
}

// 修改采购价格分析
export function updatePurchaseprice(data) {
  return request({
    url: '/procurementmanagement/purchaseprice',
    method: 'put',
    data: data
  })
}

// 删除采购价格分析
export function delPurchaseprice(priceid) {
  return request({
    url: '/procurementmanagement/purchaseprice/' + priceid,
    method: 'delete'
  })
}
